#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
int my_strlen(char* ch)
{
	if (*ch != '\0')
		return 1 + my_strlen(ch + 1);
	else return 0;
}
void reverse_string(char* string)
{
	int len = my_strlen(string);
	char tmp;
	tmp = *string;
	*string = *(string + len - 1);
	*(string + len - 1) = '\0';
	if (my_strlen(string + 1) > 1)
		 reverse_string(string + 1);
	*(string + len - 1) = tmp;
}
int main()
{
	char ch[] = "abcdef";
	printf("%s\n", ch);
	reverse_string(ch);
	printf("%s\n", ch);
	return 0;
}
